package Chapter6.superclass;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class CompanyBook extends BookSuperclass {
	private String address;
	private Date dateCreate;

	public CompanyBook(String address, Date dateCreate) {
		this.address = address;
		this.dateCreate = dateCreate;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Temporal(TemporalType.DATE)
	public Date getDateCreate() {
		return dateCreate;
	}

	public void setDateCreate(Date dateCreate) {
		this.dateCreate = dateCreate;
	}

}
